﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GaiNo.Core.Services
{
    public interface IUser
    {
        int? ID { get; }
        string Name { get; }
        bool IsInRole(string role);
        bool IsAuthenticated { get; }
        IDictionary<string, object> AuthenticationValues { get; }
        bool Authentication(string user, string password);
        bool CheckPermission(string controller, string action);
        bool CheckPermission(string controller);
    }
}
